package com.itcoon.cloud.framework.mybatis.typehandler;

import java.util.Collection;

public class IntegerCollectionToSegmentsTypeHandler extends AbstractCollectionToSegmentsTypeHandler<Integer> {

    protected IntegerCollectionToSegmentsTypeHandler(Class<? extends Collection> collectionType) {
        super(collectionType);
    }

    @Override
    public String convertSingle(Integer data) {
        return String.valueOf(data);
    }

    @Override
    public Integer reverseConvertSingle(String item) {
        return Integer.valueOf(item);
    }
}
